import { createBrowserRouter } from "react-router-dom";

import Home from '../pages/home/Index'
import Index from '../pages/index/Index'
import User from '../pages/user/Index'
import Role from '../pages/role/Index'
import App from "../App";

export const routes=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/index',
                element:<Index></Index>
            },
            {
                path:'/user',
                element:<User></User>
            },
            {
                path:'/role',
                element:<Role></Role>
            }
        ]
    }
])

export default routes;